package com.simple.mapper;

import com.simple.dto.BillDTO;
import com.simple.pojo.Bill;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BillMapper extends Mapper<Bill> {

    @Delete("<script> delete from tb_bill where id in " +
            "<foreach collection='ids' item='id' open='(' separator=',' close=')' >" +
            "#{id}" +
            "</foreach>" +
            "</script>")
    void deleteByIds(@Param("ids") List<Integer> ids);
}